CVE-2026-6907
Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware
Description
An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. `django.middleware.cache.UpdateCacheMiddleware` erroneously caches requests where the `Vary` header contained an asterisk (`'*'`). This can lead to private data being stored and served. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Ahmad Sadeddin for reporting this issue.
INFO
Published Date :
May 5, 2026, 4:16 p.m.
Last Modified :
May 5, 2026, 4:16 p.m.
Remotely Exploit :
Yes !
Source :
6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Affected Products
The following products are affected by CVE-2026-6907
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 | ||||
| CVSS 4.0 | LOW | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 |
Solution
- Update Django to version 6.0.5 or higher.
- Update Django to version 5.2.14 or higher.
- Consider updating unsupported versions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-6907.
| URL | Resource |
|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | |
| https://groups.google.com/g/django-announce | |
| https://www.djangoproject.com/weblog/2026/may/05/security-releases/ |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-6907 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-6907
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-6907 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-6907 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
May. 05, 2026
Action Type Old Value New Value Added Description An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. `django.middleware.cache.UpdateCacheMiddleware` erroneously caches requests where the `Vary` header contained an asterisk (`'*'`). This can lead to private data being stored and served. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Ahmad Sadeddin for reporting this issue. Added CVSS V4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N Added CWE CWE-524 Added Reference https://docs.djangoproject.com/en/dev/releases/security/ Added Reference https://groups.google.com/g/django-announce Added Reference https://www.djangoproject.com/weblog/2026/may/05/security-releases/